﻿using Newtonsoft.Json;
using Pay.Core;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO
{
    /// <summary>
    /// 邀请好友马力设置
    /// </summary>
    [Serializable]
    [JsonObject(MemberSerialization.OptOut)]
    public class invite_horse_power_setting_dto {
        /// <summary>
        /// 记录Id
        /// </summary>
        public long id { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime begin_time { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime end_time { get; set; }

        /// <summary>
        /// 增加马力（邀请超过10人后所增加马力）
        /// </summary>
        public int horse_power { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public EInviteHorsePowerSettingStatus status { get; set; }
        
        /// <summary>
        /// 状态枚举描述
        /// </summary>
        public string status_title { get { return this.status.ToDescription(); } }
       
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime update_time { get; set; }
    }

    [Serializable]
    [JsonObject(MemberSerialization.OptOut)]
    public class invite_horse_power_setting_dto_ex : invite_horse_power_setting_dto {
        /// <summary>
        /// 状态枚举下拉数据
        /// </summary>
        public List<DropdownItem> e_status_list
        {
            get { return typeof(EInviteHorsePowerSettingStatus).GetDropdownItemList(); }
        }
        /// <summary>
        /// 状态枚举值
        /// </summary>
        public string status_value { get; set; }

    }

}
